import axiosInstance from '../axiosInstance';

const foodInfo = {
    findByPage({ pageIndex, food_name, category_name }) {
        return axiosInstance.get("/food/findByPage", {
            params: {
                pageIndex, food_name, category_name
            }
        })
    },
    findById(id) {
        return axiosInstance.get("/food/find/" + id)
    }
}

export default foodInfo;